import request from '@/utils/request'

export function list(query) {
  console.log(query)
  return request({
    url: '/api/tbGames',
    method: 'get',
    params: query
  })
}

export function add(query) {
  return request({
    url: '/api/tbGames',
    method: 'post',
    data: query
  })
}

export function update(query) {
  return request({
    url: '/api/tbGames',
    method: 'put',
    data: query
  })
}

export function del(id) {
  return request({
    url: '/api/tbGames/'+id,
    method: 'delete',
  })
}

export function show(query) {
  return request({
    url: '/api/tbGames/show',
    method: 'post',
    params: query
  })
}


export function generateQrcode() {
  return request({
    url: 'api/getQrcode',
    method: 'get',
  })
}
